<template>
  <div class="not-found">
    <el-empty image="/public/svg/404.svg" :image-size="500" description="抱歉，您访问的页面不存在">
      <el-button type="primary" @click="handleIndex">返回首页</el-button>
    </el-empty>
  </div>
</template>

<script setup name="notFound" inheritAttrs="false">
  const router = useRouter();
  const handleIndex = ()=>{
    router.push({path: '/index',replace:true})
  }
</script>

<style scoped lang="scss">
  .not-found {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
  }
</style>
